all: xen-lsof

xen-lsof: proc stack xen-lsof.c
	gcc -I/usr/local/include -g -c -o xen-lsof.o xen-lsof.c 
	gcc -L/usr/local/lib -g -o xen-lsof -lxenaccess xen-lsof.o proc.o stack.o

proc: proc.c
	gcc -I/usr/local/include -g -c -o proc.o proc.c

stack: stack.c
	gcc -I/usr/local/include -g -c -o stack.o stack.c

clean:
	rm -rf *.o
	rm -rf xen-lsof
